package com.strom.strings;

import com.google.common.base.*;

public class StringsDemo {

    public static void main(String[] args) {
        String str = "str";
        System.out.println(Strings.padEnd(str, 10, 'x'));
        System.out.println(Strings.padStart(str, 4, '0'));
        String s = Strings.emptyToNull(str);
        System.out.println(s);

        System.out.println(Strings.nullToEmpty("  "));
        System.out.println(Strings.repeat(str,6));

        System.out.println(MoreObjects.toStringHelper(str).addValue(1).toString());
    }
}
